<template>
  <div>
    <el-descriptions :column="2" border title="基础信息" class="mt-0">
      <el-descriptions-item
        v-for="(item, index) in props.resultData"
        :key="index"
        :label="`${item.mark ? item.mark + '-' : ''}${item.datapointTypeTitle}`"
      >
        <span class="text-[0.8rem]">{{ item.value ? item.value : "---" }}</span>
        <span class="ml-1 font-bold"> {{ item.value ? item.unit : "" }} </span>
      </el-descriptions-item>
    </el-descriptions>
  </div>
</template>

<script setup>
import { ref, onMounted } from "vue";
import { ElMessage, ElMessageBox } from "element-plus";

onMounted(() => {});

const props = defineProps({
  resultData: {
    type: Array,
    default: () => [],
  },
});
</script>

<style scoped lang="scss">
</style>